package com.ruoyi.report_ljlm.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import com.ruoyi.common.utils.BigDecimalUtil;
import com.ruoyi.report_tg.domain.vo.ExcelGeneralVo;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;


/**
 * 贝克曼梁测定回弹弯沉试验检测报告视图对象 report_ljlm_wcbg_bs_info
 *
 * @author llb
 * @date 2024-07-10
 */
@Data
@ExcelIgnoreUnannotated
public class WcbgBsInfoVo extends ExcelGeneralVo {

    private static final long serialVersionUID = 1L;

    /**
     * 一份excel表格的唯一id(其他的excel主表，都应有此字段）
     */
    @ExcelProperty(value = "一份excel表格的唯一id(其他的excel主表，都应有此字段）")
    private Long excelId;

    /**
     * 共几页
     */
    @ExcelProperty(value = "共几页")
    private Long totalPage;

    /**
     * 第几页
     */
    @ExcelProperty(value = "第几页")
    private Long page;

    /**
     * 检测单位名称
     */
    @ExcelProperty(value = "检测单位名称")
    private String jiancdwmc;

    /**
     * 报告编号
     */
    @ExcelProperty(value = "报告编号")
    private String baogbh;

    /**
     * 施工/委托单位
     */
    @ExcelProperty(value = "施工/委托单位")
    private String shigwtdw;

    /**
     * 工程名称
     */
    @ExcelProperty(value = "工程名称")
    private String gongcmc;

    /**
     * 工程部位/用途
     */
    @ExcelProperty(value = "工程部位/用途")
    private String gongcbwyt;

    /**
     * 样品名称
     */
    @ExcelProperty(value = "样品名称")
    private String yangpmc;

    /**
     * 样品编号
     */
    @ExcelProperty(value = "样品编号")
    private String yangpbh;

    /**
     * 样品数量
     */
    @ExcelProperty(value = "样品数量")
    private String yangpsl;

    /**
     * 样品状态
     */
    @ExcelProperty(value = "样品状态")
    private String yangpzt;

    /**
     * 样品时间
     */
    @ExcelProperty(value = "样品时间")
    private String yangpsj;

    /**
     * 检测依据
     */
    @ExcelProperty(value = "检测依据")
    private String jiancyj;

    /**
     * 判定依据
     */
    @ExcelProperty(value = "判定依据")
    private String pandyj;

    /**
     * 主要仪器设备名称及编号
     */
    @ExcelProperty(value = "主要仪器设备名称及编号")
    private String zhuyyqsbmcjbh;

    /**
     * 湿度影响系数
     */
    @ExcelProperty(value = "湿度影响系数")
    private BigDecimal shidyxxs;

    /**
     * 温度影响系数
     */
    @ExcelProperty(value = "温度影响系数")
    private BigDecimal wendyxxs;

    /**
     * 路段桩号
     */
    @ExcelProperty(value = "路段桩号")
    private String ludzh;

    /**
     * 弯沉仪类型
     */
    @ExcelProperty(value = "弯沉仪类型")
    private String wancylx;

    /**
     * 后轴重(kN)
     */
    @ExcelProperty(value = "后轴重(kN)")
    private BigDecimal houzz;

    /**
     * 测试车车型
     */
    @ExcelProperty(value = "测试车车型")
    private String cesccx;

    /**
     * 结构层类型
     */
    @ExcelProperty(value = "结构层类型")
    private String jiegclx;

    /**
     * 轮胎压强(MPa)
     */
    @ExcelProperty(value = "轮胎压强(MPa)")
    private BigDecimal luntyq;


    /**
     * 设计弯沉(0.01mm)
     */
    @ExcelProperty(value = "设计弯沉(0.01mm)")
    private BigDecimal shejwc;

    /**
     * 前五天平均气温(°C)
     */
    @ExcelProperty(value = "前五天平均气温(°C)")
    private BigDecimal pingjwd;

    /**
     * 检验用弯沉仪最大读数(0.01mm)
     */
    @ExcelProperty(value = "检验用弯沉仪最大读数(0.01mm)")
    private BigDecimal zuidds;

    /**
     * 检验用弯沉仪最终读数(0.01mm)
     */
    @ExcelProperty(value = "检验用弯沉仪最终读数(0.01mm)")
    private BigDecimal zuizds;

    /**
     * 测点数
     */
    @ExcelProperty(value = "测点数")
    private String ceds;

    /**
     * 平均回弹弯沉值
     */
    @ExcelProperty(value = "平均回弹弯沉值")
    private String pingjhtwcz;

    /**
     * 标准差
     */
    @ExcelProperty(value = "标准差")
    private String biaozc;

    /**
     * 有效点数
     */
    @ExcelProperty(value = "有效点数")
    private String youxds;

    /**
     * 弯沉代表值
     */
    @ExcelProperty(value = "弯沉代表值")
    private String wancdbz;

    /**
     * 结果判定
     */
    @ExcelProperty(value = "结果判定")
    private String jiegpd;

    /**
     * 检测结论
     */
    @ExcelProperty(value = "检测结论")
    private String jiancjl;

    /**
     * 附加声明
     */
    @ExcelProperty(value = "附加声明")
    private String fujsm;

    /**
     *
     */
    @ExcelProperty(value = "")
    private String bgFlag;

    /**
     * 检测
     */
    @ExcelProperty(value = "检测")
    private String jianc;

    /**
     * 记录
     */
    @ExcelProperty(value = "记录")
    private String jil;

    /**
     * 复核
     */
    @ExcelProperty(value = "复核")
    private String fuh;

    /**
     * 日期
     */
    @ExcelProperty(value = "日期")
    private String riq;

    /**
     * 设备ids
     */
    @ExcelProperty(value = "设备ids")
    private String shebIds;

    /**
     * 判断依据ids
     */
    @ExcelProperty(value = "判断依据ids")
    private String pandyjIds;

    /**
     * 检测依据ids
     */
    @ExcelProperty(value = "检测依据ids")
    private String jiancyjIds;


    List<WcbgBsDetailVo> detailList;

    public WcbgBsInfoVo() {
        detailList = new ArrayList<>(14);
        for (long i = 1; i <= 14L; i++) {
            detailList.add(new WcbgBsDetailVo());
        }
    }

    public void setShidyxxs(BigDecimal shidyxxs) {
        this.shidyxxs = BigDecimalUtil.stpTrailZero(shidyxxs);
    }

    public void setWendyxxs(BigDecimal wendyxxs) {
        this.wendyxxs = BigDecimalUtil.stpTrailZero(wendyxxs);
    }

    public void setHouzz(BigDecimal houzz) {
        this.houzz = BigDecimalUtil.stpTrailZero(houzz);
    }

    public void setLuntyq(BigDecimal luntyq) {
        this.luntyq = BigDecimalUtil.stpTrailZero(luntyq);
    }

    public void setShejwc(BigDecimal shejwc) {
        this.shejwc = BigDecimalUtil.stpTrailZero(shejwc);
    }

    public void setPingjwd(BigDecimal pingjwd) {
        this.pingjwd = BigDecimalUtil.stpTrailZero(pingjwd);
    }

    public void setZuidds(BigDecimal zuidds) {
        this.zuidds = BigDecimalUtil.stpTrailZero(zuidds);
    }

    public void setZuizds(BigDecimal zuizds) {
        this.zuizds = BigDecimalUtil.stpTrailZero(zuizds);
    }

    /**
     * 公路等级
     */
    @ExcelProperty(value = "公路等级")
    private String gongldj;

    /**
     * 沥青面层厚度
     */
    @ExcelProperty(value = "沥青面层厚度")
    private BigDecimal liqmchd;

    public void setLiqmchd(BigDecimal liqmchd) {
        this.liqmchd = BigDecimalUtil.stpTrailZero(liqmchd);
    }
}
